class AuthRoleError(Exception):

    def __init__(self, code=403, message="角色验证失败", *args: object) -> None:
        self.code = code
        self.message = message
        self.args = args


class AuthPermissionError(Exception):

    def __init__(self, code=403, message="权限验证失败", *args: object) -> None:
        self.code = code
        self.message = message
        self.args = args
